package com.yxinsur.imc.business.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yxinsur.imc.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@ToString
public class TeamVo {

    /** $column.columnComment */
    @ApiModelProperty("团队id")
    private Long id;

    /** 上级团队 */
    @ApiModelProperty("上级团队id")
    @Excel(name = "上级团队id",sort = 2)
    private Long parentId;

    /** 上级团队 */
    @ApiModelProperty("上级团队名称")
    @Excel(name = "上级团队名称",sort = 3)
    private String parentName;

    /** 祖级列表 */
    @ApiModelProperty("祖籍列表")
    private String ancestors;

    /** 团队（营销区）全名 */
    @ApiModelProperty("团队名称")
    @Excel(name = "团队名称",sort = 1)
    private String teamName;

    /** 所属机构id (机构表sys_org的org_id） */
    @ApiModelProperty("所属机构id")
    @Excel(name = "所属机构id",sort = 4)
    private Long orgId;

    @ApiModelProperty("所属机构名称")
    @Excel(name = "所属机构名称",sort = 5)
    private String orgName;

    /** 团队负责人id（imc_broker的主键） */
    @ApiModelProperty("团队负责人id")
    //@Excel(name = "团队负责人id",sort = 6)
    private Long teamLeaderId;

    /** 团队负责人id（imc_broker的主键） */
    @ApiModelProperty("团队负责人编码")
    @Excel(name = "团队负责人编码",sort = 6)
    private String teamLeaderCode;

    @ApiModelProperty("团队负责人名称")
    @Excel(name = "团队负责人姓名",sort = 7)
    private String teamLeaderName;

    /** 开业时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("开业时间")
    @Excel(name = "开业时间",dateFormat = "yyyy-MM-dd",sort = 8)
    private Date openDate;


    private List<TeamVo> teamChildrenList;
}
